Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / ui / src / commonMain / kotlin / org / meshtastic / core / ui / component / AdaptiveTwoPane.kt

Displaying Raw • Download

core/ui/src/commonMain/kotlin/org/meshtastic/core/ui/component/AdaptiveTwoPane.kt 520fa717a938fd84682403b41f57d9f7e1ef49ef (520fa717) Text, 1.93 KB

T8b949e/*
* Copyright (c) 2025-2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.ui.component

Tff7b72import T7ee787androidx.compose.foundation.layout.BoxWithConstraints
Tff7b72import T7ee787androidx.compose.foundation.layout.Column
Tff7b72import T7ee787androidx.compose.foundation.layout.ColumnScope
Tff7b72import T7ee787androidx.compose.foundation.layout.Row
Tff7b72import T7ee787androidx.compose.material3.adaptive.currentWindowAdaptiveInfo
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787androidx.compose.ui.Modifier
Tff7b72import T7ee787androidx.window.core.layout.WindowSizeClass

Tf0883e@Composable
Tff7b72fun Td2a8ffAdaptiveTwoPaneTb4b4b4(Te6edf3firstTb4b4b4: Tf0883e@Composable Te6edf3ColumnScopeTb4b4b4.Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4, Te6edf3secondTb4b4b4: Tf0883e@Composable Te6edf3ColumnScopeTb4b4b4.Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3adaptiveInfo Tff7b72= Te6edf3currentWindowAdaptiveInfoTb4b4b4(Te6edf3supportLargeAndXLargeWidth Tff7b72= Tff7b72trueTb4b4b4)

T8b949e// In V2 Breakpoints, we check the breakpoint explicitly. Medium corresponds to 600dp+.
Tff7b72val Te6edf3compactWidth Tff7b72=
Tff7b72!Te6edf3adaptiveInfoTb4b4b4.Te6edf3windowSizeClassTb4b4b4.Te6edf3isWidthAtLeastBreakpointTb4b4b4(Te6edf3WindowSizeClassTb4b4b4.Te6edf3WIDTH_DP_MEDIUM_LOWER_BOUNDTb4b4b4)

Te6edf3BoxWithConstraints Tb4b4b4{
Te6edf3Row Tb4b4b4{
Te6edf3ColumnTb4b4b4(Te6edf3modifier Tff7b72= Te6edf3ModifierTb4b4b4.Te6edf3weightTb4b4b4(T79c0ff1fTb4b4b4)Tb4b4b4) Tb4b4b4{
Te6edf3firstTb4b4b4(Tb4b4b4)

Tff7b72if Tb4b4b4(Te6edf3compactWidthTb4b4b4) Tb4b4b4{
Te6edf3secondTb4b4b4(Tb4b4b4)
Tb4b4b4}
Tb4b4b4}

Tff7b72if Tb4b4b4(Tff7b72!Te6edf3compactWidthTb4b4b4) Tb4b4b4{
Te6edf3ColumnTb4b4b4(Te6edf3modifier Tff7b72= Te6edf3ModifierTb4b4b4.Te6edf3weightTb4b4b4(T79c0ff1fTb4b4b4)Tb4b4b4) Tb4b4b4{ Te6edf3secondTb4b4b4(Tb4b4b4) Tb4b4b4}
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.05s